<template>
  <g-loading type="square" :spinning="loading">
    <div class="create-screen">
      <div class="top-bar">
        <div class="right-bar"></div>
        <div class="left-bar"></div>
          <router-link to="/case" class="return-btn"> 
          <span class="return-text">
            <n-icon class="return-icon">
              <IconBack />
            </n-icon>
            返回
          </span>
        </router-link>
      </div>
      <particles></particles>
      <div class="background-detail">
        
        <el-row>
          <el-col :span="11" ></el-col>
          <el-col :span="13" ><span class="zbk">【装备库】</span></el-col> 
        </el-row>
        
        <el-card class="order-container">
          <template #header>
          <div class="header">
          <el-row>
            <el-col :span="20" class="lightgreen-box"> <el-input
              style="width: 200px; margin-right: 10px"
              placeholder="请输入灵装名称"
              v-model="name"
              @change="handleOption"
              size="small"
              clearable
            />
            <el-select @change="handleOption" v-model="attribute" size="small" style="width: 100px; margin-right: 10px">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select> 
            <el-select @change="handleOption" v-model="serverResourceType" size="small" style="width: 100px; margin-right: 10px">
              <el-option
                v-for="item in serviceOptions"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select> 
          </el-col>
          
          </el-row>
          </div>
          </template>
          <el-table
        v-loading="loading"
        :data="tableData"
        tooltip-effect="dark"
        height="calc(100vh - 285px)"
        style="width: 100%;"
        :header-cell-style="{'text-align':'center'}"  
        :cell-style="{'text-align':'center'}"
        >
        <el-table-column label="序号" width="70">
          <template  #default='scope'>
            {{(scope.$index+1)+(currentPage-1)*pageSize}}
            </template>
          </el-table-column> 
          <el-table-column
          label="灵装"
          width="200"
          >
          <template #default="scope">
            <img  class="tx-cl" style="width: 5vw;cursor: pointer;" :src="scope.row.equipmentImgUrl" @click="conEquipCreate(scope.row)">
          </template>
          
        </el-table-column>
        <el-table-column
          prop="equipmentName"
          label="灵装名称"
        >
        </el-table-column>
        <el-table-column
          prop="name"
          label="属性"
        >
          <template #default='scope'>
            <span v-if="scope.row.attribute == 1">水</span>
            <span v-else-if="scope.row.attribute == 2">火</span>
            <span v-else-if="scope.row.attribute == 3">风</span>
            <span v-else-if="scope.row.attribute == 4">暗</span>
            <span v-else-if="scope.row.attribute == 5">光</span>
            <span v-else-if="scope.row.attribute == 6">全属性</span>
          </template>
        </el-table-column>
        <el-table-column
          prop="getType"
          label="获取途径"        >
        </el-table-column>
        <el-table-column
          prop="maxAttack"
          label="满级ATK"
        >
        </el-table-column>
        <el-table-column
          prop="maxBlood"
          label="满级HP"
        >
        </el-table-column>
        <el-table-column
        prop="markupType"
        label="单体/全队"
        >
        <template #default='scope'>
          <span v-if="scope.row.markupType == 1">单体</span>
          <span v-else-if="scope.row.markupType == 2">全队</span>
        </template>
        </el-table-column>
        <el-table-column
          prop="equipmentMaxMarkup"
          label="灵装属性MAX"
          :show-overflow-tooltip="true"
        >
        </el-table-column>
        <el-table-column
          prop="equipmentMaxSkill"
          label="灵装技能MAX"
          :show-overflow-tooltip="true"
        >
        </el-table-column>
        <!-- <el-table-column
          prop="recastingMaterial"
          label="重铸材料"
          :show-overflow-tooltip="true"
        >
        </el-table-column>
        <el-table-column
          prop="recastingMaxMarkup"
          label="重铸属性MAX"
          :show-overflow-tooltip="true"
        >
        </el-table-column>
        <el-table-column
          prop="recastingMaxSkill"
          label="重铸技能MAX"
          :show-overflow-tooltip="true"
        >
        </el-table-column> -->
          </el-table>
          <el-pagination
          background
          layout="prev, pager, next"
          :total="total"
          :page-size="pageSize"
          :current-page="currentPage"
          @current-change="changePage"
          />  
           
        </el-card>
      </div>  
    </div>

    <n-modal
    v-model:show="equipCreateDialog"
    preset="dialog"
    :show-icon="false"
    title="灵装重铸"
    style="width: 650px;padding-bottom: 14px;height: 410px;"
  >
      <div class="create-dialog">
        <p class="name-title">【{{scrollRef.equipmentName}}】：</p>
        <p class="bm-text">{{scrollRef.equipmentMaxMarkup}}</p>
        <p class="bm-text">{{scrollRef.equipmentMaxSkill}}</p>
        <p class="name-title">重铸材料：</p>
        <p class="bm-text">{{scrollRef.recastingMaterial}}</p>
        <p class="name-title">重铸灵装提升MAX：</p>
        <p class="bm-text">{{scrollRef.recastingMaxMarkup}}</p>
        <p class="bm-text">{{scrollRef.recastingMaxSkill}}</p>
      </div>
  </n-modal>
  </g-loading>

</template>

<script lang='ts'>
import { defineComponent, ref, onMounted, nextTick, computed,reactive,toRefs } from 'vue'
import { useRouter,useRoute } from 'vue-router'
import { useMessage } from 'naive-ui'
import { ProjectGroup, ProjectTemplate } from '@/domains/project'
import { getProjects, createProject } from '@/api/project'
import { getSysTemplates } from '@/api/templates'
import { scrollToLeft } from '@/utils/animation'
import { IconArrowLeft, IconArrowRight, IconBack, IconPlus } from '@/icons'
import { getEquipmentList,saveClPvUv } from '@/api/user'
import { da } from 'date-fns/locale'
import Particles from '@/components/particles/index.vue'

export default defineComponent({
  name: 'equipmentLbrary',
  components: {
    IconArrowLeft,
    IconArrowRight,
    IconBack,
    IconPlus,
    "particles":Particles
  },
  setup() {
    const nMessage = useMessage()
    const loading = ref(true)
    const loadingEq = ref(true)
    const templates = ref<ProjectTemplate[]>([])
    const equipArr = ref([])
    const equipEntryArr = ref([])
    const visibleCreateDialog = ref(false)
    const equipCreateDialog = ref(false)
    const visiblePreviewDialog = ref(true)
    const projectName = ref('')
    const bigUrlImg = ref('')
    const currentPage = ref(0)
    const name = ref('')
    const stAttribute = ref('')
    const attribute = ref('')
    const template = ref<Partial<ProjectTemplate> | null>({})
    const groupId = ref(0)
    const groups = ref([new ProjectGroup(0, '未分组')])
    const saveLoading = ref(false)
    const router = useRouter()
    const routes = useRoute()

    const scrollRef = ref<any>(null)
    const groupOpts = computed(() => {
      return groups.value.map(m => ({ value: m.id, label: m.name }))
    })

   const state = reactive({
      loading: false,
      loadingEq: false,
      tableHeight:700,
      tableRef:null,
      tableData: [], // 数据列表
      multipleSelection: [], // 选中项
      total: 0, // 总条数
      currentPage: 1, // 当前页
      pageSize: 10, // 分页大小
      name: '', // 人物名
      attribute: "", // 属性
      serverResourceType:"",
      options: [{
        value: "",
        label: '全部'
      }, {
        value: "1",
        label: '水'
      }, {
        value: "2",
        label: '火'
      }, {
        value: "3",
        label: '风'
      }, {
        value: "4",
        label: '暗'
      }, {
        value: "5",
        label: '光'
      }],
      serviceOptions: [{
        value: "",
        label: '单体/全队'
      }, {
        value: "1",
        label: '单体'
      }, {
        value: "2",
        label: '全队'
      }]
    })

    onMounted(async () => {
      let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
       // 移动端处理
       if(flag != null ){
          router.push({
            name: 'MyError'
          })
       }

      const res = await getSysTemplates()
      loading.value = false
      templates.value = res.data
      const tplId = parseInt(routes.query.id as string)
      if(tplId == 1){
        stAttribute.value="水";
      }else if(tplId == 2){
        stAttribute.value="火";
      }else if(tplId == 3){
        stAttribute.value="风";
      }else if(tplId == 4){
        stAttribute.value="暗";
      }else if(tplId == 5){
        stAttribute.value="光";
      }
      getEquipment();
      // savePvUv(tplId);
    })

    // 记录pvuv
    const savePvUv = (tplId) => {
        const url = "https://www.cljj.wiki/#/team-screen?id="+tplId;
        saveClPvUv(url).then();
    }

    const handleOption = () => {
      state.currentPage = 1
      getEquipment()
    }

     // 获取装备库列表
     const getEquipment = () => {
      state.loadingEq = true
      let pageNO = state.currentPage
      let pageSize = state.pageSize
      let name = state.name
      let attribute = state.attribute;
      let markupType = state.serverResourceType;
      getEquipmentList(pageNO,pageSize,name,attribute,markupType).then(res=>{ 
           const data = res.data.data;  
           state.tableData = data.dataList;    
           state.total = data.totalCount;
           state.currentPage = data.pageNumber;
           state.loading = false;      
      })
    }
    const changePage = (val) => {
      state.currentPage = val
      getEquipment()
    }

    
    const conEquipCreate = (row: Object | null) => {
      // console.log(row.recastingMaterial)
      if(row.recastingMaterial == "" || row.recastingMaterial ==null){
        nMessage.warning('该灵装还未开启重铸')
      }else{
        scrollRef.value = row;
        equipCreateDialog.value = true;
      }
    }


 
    return {
      templates,
      visibleCreateDialog,
      equipCreateDialog,
      visiblePreviewDialog,
      projectName,
      template,
      groupId,
      groups,
      groupOpts,
      saveLoading,
      scrollRef,
      equipArr,
      bigUrlImg,
      equipEntryArr,
      stAttribute,
      handleOption,
      changePage,
      conEquipCreate,
      ...toRefs(state)

    }
  },
})
</script>

<style lang="scss" scoped>
@import "@/styles/mixins/function.scss";

@font-face {
  font-family: Orbitron-Bold;
  src: url('@/styles/fonts/orbitron-bold.ttf') format('truetype');
}

@mixin cover-img {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #131e2d;
  background-image: url(com-cdn('datav/datav-vue-logo.png'));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  filter: grayscale(1);
  opacity: 0.36;
}

.create-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  // background: rgb(0 51 125 / 7%);
  background: #101129;

  margin: 0;
  padding: 0;
   user-select: none;

  .top-bar {
    height: 50px;
    width: 100%;
    position: relative;
    z-index: 2;

    &::before {
      content: ' ';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 20px;
      width: 100%;
      background: #151b22;
    }

    .right-bar {
      position: absolute;
      left: 150px;
      top: 20px;
      height: 5px;
      width: 100%;
      border-top: var(--datav-border-primary);
      border-left: 2px solid var(--datav-main-color);
      background: rgb(55 126 255 / 4%);
      border-top-left-radius: 5px;
      transform: skewX(-45deg);
      box-shadow: 0 5px 28px 0 rgb(55 126 255 / 28%);
    }

    .left-bar {
      position: absolute;
      left: 0;
      top: 24px;
      height: 25px;
      width: 138px;
      border-right: 2px solid var(--datav-main-color);
      border-bottom: var(--datav-border-primary);
      transform: skewX(-45deg);
      border-bottom-right-radius: 5px;
      box-shadow: 0 5px 28px 0 rgb(55 126 255 / 28%);
    }

    .return-btn {
      position: absolute;
      left: -31px;
      top: 0;
      width: 180px;
      height: 48px;
      line-height: 48px;
      text-align: center;
      background: #151b22;
      cursor: pointer;
      transform: skewX(-45deg);
      border-bottom-right-radius: 5px;
      

      .return-text {
        display: inline-block;
        color: #fff;
        font-size: 14px;
        margin-left: 10px;
        transform: skewX(45deg);
        transition: 0.2s;

        &:hover {
          color: var(--datav-main-color);
        }
      }

      .return-icon {
        margin-right: 5px;
      }
    }
  }

  .creator-wp {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 30px;

    .template-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      overflow-x: hidden;
      overflow-y: scroll;
      color: #fff;
      font-size: 12px;
      margin: 0 -16px;
      padding-bottom: 100px;
      padding-top: 60px;

      .template-item {
        width: 258px;
        height: 184px;
        box-shadow: var(--datav-shadow);
        border: var(--datav-border);
        margin: 16px;
        transition: 0.2s;
        outline: 1px solid transparent;
        cursor: default;

        .template-image {
          width: 100%;
          height: 146px;
          display: flex;
          align-items: center;
          justify-content: center;
          transition: 0.2s;
          position: relative;
        }

        .template-info {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 10px;
          height: 36px;
          background: var(--datav-bgcolor-2);
          transition: 0.2s;
        }

        &.--blank {
          position: relative;
          outline: var(--datav-border-primary);

          .template-image {
            box-shadow: inset 0 0 46px 0 rgb(136 215 255 / 29%);
          }

          .template-info {
            border-top: var(--datav-border-primary);
            justify-content: center;
            font-size: 14px;
          }
        }
      }

      .preview-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative;

        &::after {
          @include cover-img;
        }
      }

      .template-mask {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: rgb(0 0 0 / 50%);
        transition: 0.2s;
        pointer-events: none;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        opacity: 0;
        font-weight: 400;

        .create-btn {
          width: 112px;
          padding: 0 5px;
        }

        .preview-btn {
          margin-top: 10px;
          width: 112px;
          padding: 0 5px;
          margin-left: 0;
        }
      }

      .template-item:hover {
        outline: var(--datav-border-primary);

        .template-mask {
          pointer-events: all;
          opacity: 1;
        }
      }

      .template-name {
        font-size: 12px;
      }

      .template-size {
        color: #999;
        text-align: right;
        font-family: Orbitron-Bold, PingFangSC-Medium, "PingFang SC", "Microsoft YaHei", Arial, Helvetica, sans-serif;
      }

      .template-item-placehoder {
        width: 258px;
        margin: 16px;
      }
    }
  }
}

.create-dialog {
  .required {
    display: inline-block;
    margin-right: 6px;
    color: var(--datav-red-color);
  }

  .template-desc {
    margin-bottom: 20px;
    opacity: 0.8;
    overflow: hidden;
    -webkit-line-clamp: 3;
    display: box;
    -webkit-box-orient: vertical;
  }

  .name-title {
    margin-bottom: 10px;
    line-height: 20px;
    font-style: italic;
  }

  .name-input {
    margin-bottom: 15px;
    height: 28px;
    line-height: 26px;
    flex-wrap: wrap
  }
}

@mixin slider-blur($placement: left, $angle: -90deg) {
  content: ' ';
  position: absolute;
  top: 0;
  #{$placement}: 0;
  background-image:
    linear-gradient(
      #{$angle},
      rgb(0 0 0 / 0%) 64%,
      #303640 100%
    );
  width: 82px;
  height: 96px;
  pointer-events: none;
  z-index: 1;
}

.preview-dialog {
  margin-top: -10px;
  margin-bottom: -40px;

  .preview-list {
    width: 895px;
    height: 150px;
    margin-left: -20px;
    background: #303640;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .template-list-title {
      font-size: 12px;
      margin: 0 0 15px 30px;
    }
  }

  .blur-wp {
    position: relative;
    margin: 0 24px;

    &::before {
      @include slider-blur();
    }

    &::after {
      @include slider-blur(right, 90deg);
    }
  }

  .scroll-wp {
    white-space: nowrap;
    overflow-x: scroll;
    padding-bottom: 8px;

    &::-webkit-scrollbar-thumb {
      background: var(--datav-main-color);
      border-radius: 5px;
      border: none;
    }
  }

  .preview-wp {
    position: relative;
    font-size: 0;
    width: 137px;
    height: 97px;
    overflow: hidden;
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
    border: 1px solid rgb(123 123 123 / 25%);
    transition: 0.2s;

    .preview-small-img {
      display: block;
      width: 100%;
      height: 76px;
      object-fit: cover;
      position: relative;

      &::after {
        @include cover-img;
      }
    }

    .preview-screen-name {
      font-size: 12px;
      line-height: 19px;
      background: var(--datav-bgcolor-2);
      padding: 0 5px;
      font-weight: 300;
    }

    &:hover,
    &.selected {
      border-color: var(--datav-main-color);
    }
  }

  .preview-gif {
    height: 420px;
    display: flex;
    padding: 20px 10px 50px;

    .gif-wp {
      width: 610px;
      position: relative;

      .snapshot-gif {
        width: 100%;
        height: 100%;
        display: block;
        position: relative;
        border: var(--datav-border);
        box-shadow: var(--datav-shadow);

        &::after {
          @include cover-img();
        }
      }

      .next-icon,
      .prev-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 5px;
        border-radius: 50%;
        height: 26px;
        width: 26px;
        margin: 10px;
        font-weight: 600;
        background: rgb(255 255 255 / 20%);
        color: rgb(255 255 255 / 80%);
        cursor: pointer;
        transition: 0.2s;

        &:hover {
          color: #fff;
          background: rgb(255 255 255 / 30%);
        }
      }

      .next-icon {
        right: 0;
      }
    }

    .preview-create {
      flex: 1;
      overflow: hidden;
      padding-left: 20px;
    }
  }
}

.preview-create-btn {
  margin-top: 30px;

  .next-icon {
    font-size: 12px;
  }
}
 .data {
    display: flex;
    margin-bottom: 50px;
  }
  .data .data-item {
    flex: 1;
    margin: 0 10px;
  }
  .el-table {
    border: 1px solid #EBEEF5;
    border-bottom: none;
  }
  .has-gutter th {
    border-right: 1px solid #EBEEF5;
  }

  .has-gutter th:last-child {
    border-right: none;
  }
 .data {
    display: flex;
    margin-bottom: 50px;
  }
  .data .data-item {
    flex: 1;
    margin: 0 10px;
  }
  .el-table {
    border: 1px solid #EBEEF5;
    border-bottom: none;
  }
  .has-gutter th {
    border-right: 1px solid #EBEEF5;
  }

  .has-gutter th:last-child {
    border-right: none;
  }
  .el-table__row td {
    border-right: 1px solid #EBEEF5;
  }
  .el-table__row td:last-child {
    border-right: none;
  }

  .img-wrap {
      height: 20vw;
      margin-left: 4vw;
      margin-top: 2vw;
      // outline: 1px solid #66f;
  //  box-shadow: 0px 0px 10px #ee0a24 inset, 0px 0px 0px 15px #fff inset, 0px 0px 10px 15px #07c160 inset;
    }
    .img-wrap img {
      height: 100%;
      //蓝色背景效果
      box-shadow: 0px 0px 10px #FFD700;
      background: linear-gradient(#FFD700,#FFD700) left top,
      linear-gradient(#FFD700,#FFD700) left bottom,
      linear-gradient(#FFD700,#FFD700) right top,
      linear-gradient(#FFD700,#FFD700) right bottom;
      background-size: 4px 4px;
      background-repeat: no-repeat;

      // 浅土色粗边框
      // border-radius:10px;
      // background: tan;
      // outline:10px solid #655;
      // box-shadow:0 0 0 5px #655;

    }
    .grid-styel{
      height: 20vw;
      color: white
     
    }

    .grid-styels{
      height: 20vw;
      color: 		#D00000
    }    
   .skill-card-title {
      height: 4vw;
      // width: 45vw;
      // outline: 1px solid rgb(0, 0, 2);
      // margin-left: 4vw;
      margin-top: 2vw;
       display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      // background-color: #101129;
      // color: rgb(238, 11, 11);

    }

    .title-child{
     font-weight:bold;
     font-size:1vw
    }
    
    .skill-card-detail {
      height: 16vw;
      // width: 45vw;
      // outline: 1px solid rgb(0, 0, 2);
      // margin-left: 4vw;
      font-size:1vw;
      // padding: 2vw;
      // background-color: tan;
      // background-image: url('http://124.221.197.189:8088/DSJ.png');
      // background-image: url('https://www.cljj.wiki/DSJ.png');
      // background-size: 100% 100%;           
			// background-repeat: no-repeat;
    }

    .skill-card-detail  img {
      height: 100%;
      //蓝色背景效果
      box-shadow: 0px 0px 10px #FFD700;
      background: linear-gradient(#FFD700,#FFD700) left top,
      linear-gradient(#FFD700,#FFD700) left bottom,
      linear-gradient(#FFD700,#FFD700) right top,
      linear-gradient(#FFD700,#FFD700) right bottom;
      background-size: 4px 4px;
      background-repeat: no-repeat;
    }

    .equip-1 img {
      // height: 100%;
      margin-top: 1vw;
      position: absolute;
      //蓝色背景效果
      box-shadow: 0px 0px 10px #FFD700;
      background: linear-gradient(#FFD700,#FFD700) left top,
      linear-gradient(#FFD700,#FFD700) left bottom,
      linear-gradient(#FFD700,#FFD700) right top,
      linear-gradient(#FFD700,#FFD700) right bottom;
      background-size: 4px 4px;
      background-repeat: no-repeat;
    }

    p{ line-height:20px} 

    .skill-card-detail p{ 
      margin:1vw auto;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      line-height: 1.2vw;
      } 

    .skill-card-detail p:hover {
      overflow: visible;
      white-space: normal;
    }

// 星盘
   .start-card-title {
      height: 4vw;
      width: 18vw;
      // outline: 1px solid rgb(0, 0, 2);
      margin-left: 2vw;
      margin-top: 2vw;
       display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }
    .start-child{
     font-weight:bold;
     font-size:1vw
    }
    
    .start-card-detail {
      height: 16vw;
     width: 18vw;
      // outline: 1px solid rgb(0, 0, 2);
      margin-left: 2vw;
      font-size:0.9vw;
      padding: 1vw;
      //  background-image: url('http://124.221.197.189:8088/DSJ.png');
       background-image: url('https://www.cljj.wiki/DSJ.png');
      background-size: 100% 100%;           
			background-repeat: no-repeat;
    }
    

    .start-card-detail p{ margin:1vw auto} 

    .start-card-detail p{ 
      // overflow: hidden;
      // white-space: nowrap;
      // text-overflow: ellipsis;
      line-height: 1.2vw;
    } 
    .start-card-detail p:hover {
      // overflow: visible;
      // white-space: normal;
    }

    // 魂装
   .soul-card-title {
      height: 4vw;
      width: 61.5vw;
      // outline: 1px solid rgb(0, 0, 2);
      margin-left: 4vw;
      margin-top: 2vw;
       display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }
    .soul-child{
     font-weight:bold;
     font-size:1vw
    }
    
    .soul-card-detail {
      height: 16vw;
      width: 61.5vw;
      // outline: 1px solid rgb(0, 0, 2);
      margin-left: 4vw;
      font-size:1vw;
      padding: 2vw;
      line-height: 0vw;
      //  background-image: url('http://124.221.197.189:8088/DSJ.png');
       background-image: url('https://www.cljj.wiki/DSJ.png');
      background-size: 100% 100%;           
			background-repeat: no-repeat;
    }

    .soul-card-detail p{ margin:1vw auto} 

    .soul-card-detail p{ 
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      line-height: 1.1vw;
    } 
    .soul-card-detail p:hover {
      overflow: visible;
      white-space: normal;
    }

    .soul-attack{ 
      display:inline;
      margin-left: 10vw;
      } 
    .soul-blood{ 
      display:inline;
      margin-left: 10vw;
    } 
     .hz-cl{ 
      // display:inline;
      // margin-left: 15vw;
      // position: relative;
      // left: 15vw;
      position: relative;
      left: 47vw;
    } 

    // 点评
    .appraise-card-title {
      height: 4vw;
      width: 27vw;
      // outline: 1px solid rgb(0, 0, 2);
      margin-left: 2vw;
      margin-top: 2vw;
       display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }
    .appraise-child{
     font-weight:bold;
     font-size:1vw
    }
    
    .appraise-card-detail {
      height: 16vw;
      width: 27vw;
      // outline: 1px solid rgb(0, 0, 2);
      margin-left: 2vw;
      font-size:0.9vw;
      line-height: 1.1vw;
      padding: 2vw;
      // background-image: url('http://124.221.197.189:8088/DSJ.png');
       background-image: url('https://www.cljj.wiki/DSJ.png');
      background-size: 100% 100%;           
			background-repeat: no-repeat;
    }
   .appraise-card-detail p{ margin:1vw auto} 


    .background-detail{
      z-index: 1;
      // // position: absolute;
      // width: 100%;
      // height: 100%;
      // background-size: cover;
      // background-position: center;
    //  opacity: 0.9;
    }
    .text-hh{
      white-space: pre-wrap;
      word-break: break-all;
      word-wrap: break-word;
    }

    .bm-text{
      color: #5599FF ;
      background: var(--datav-gui-component-bgcolor);
      line-height: 20px;
      padding: 2px 4px;
      font-size: 13px;
      margin-bottom: 1vw
    }

    .line-h{
      line-height: 1.1vw;
    }

    .soul-as-top{
      position: absolute;
      width: 100%;
      height: 1vw;
    }


// ----

   .team-card-title {
      height: 4vw;
      width: 45vw;
      margin-left: 4vw;
      margin-top: 2vw;
       display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }

    .team-card-detail {
      height: 16vw;
      width: 45vw;
      margin-left: 4vw;
      font-size:1vw;
      padding: 2vw;
    }

    .st-title{
      font-weight: bold;
      font-size: 1.5vw;
      color: red;
      // margin-top: 2vw
    }

    .data-resoure{
      color: yellow;
      margin-left:1.5vw
    }

    .entrySt{
      height: 10vw;
    }

    .entryEl{
      padding: 3px;
    }

    .tx-cl {
      height: 100%;
      // 蓝色背景效果
      // box-shadow: 0px 0px 10px #0084ff;
      // background: linear-gradient(#0084ff,#0084ff) left top,
      // linear-gradient(#0084ff,#0084ff) left bottom,
      // linear-gradient(#0084ff,#0084ff) right top,
      // linear-gradient(#0084ff,#0084ff) right bottom;
      background-size: 4px 4px;
      background-repeat: no-repeat;
      border-radius: 50%;
    }

    .xf-change{
      cursor: pointer;     
    }
    
    .xf-change:hover{
      background: rgb(184, 224, 250);
      border: 1px solid #0084ff;
    }

    .entrySt{
      cursor: pointer;     
    }
    
    .entrySt:hover{
      background: rgb(184, 224, 250);
      border: 1px solid #0ee06c;
    }

    .-container {
      min-height: 100%;
    }

    
  .tx-cl:hover {
    background: #ffffff;
    border: 1px solid white;
  }

  .order-container {
    min-height: 100%;
    margin-top:1vw;
  }

  .zbk {
    font-size: 30px;
    line-height: 50px;
    background-image: -webkit-linear-gradient(left, #f08080, #E6D205 25%, #f08080 50%, #E6D205 75%, #f08080);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-background-size: 200% 100%;
    -webkit-animation: masked-animation 4s infinite linear;
    font-family:楷体;
    font-weight: 700
}
@-webkit-keyframes masked-animation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -100% 0;
    }
}
</style>
